Integrand size = 45, antiderivative size = 241 \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx=-\frac {(8 A-14 B+9 C) \arcsin \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{8 \sqrt {a} d}+\frac {\sqrt {2} (A-B+C) \arctan \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{\sqrt {a} d}+\frac {(8 A-2 B+7 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{8 d \sqrt {a+a \cos (c+d x)}}+\frac {(6 B-C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{12 d \sqrt {a+a \cos (c+d x)}}+\frac {C \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d \sqrt {a+a \cos (c+d x)}} \]
[Out]
Time = 0.97 (sec) , antiderivative size = 241, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {3124, 3062, 3061, 2861, 211, 2853, 222} \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx=-\frac {(8 A-14 B+9 C) \arcsin \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{8 \sqrt {a} d}+\frac {\sqrt {2} (A-B+C) \arctan \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {(8 A-2 B+7 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{8 d \sqrt {a \cos (c+d x)+a}}+\frac {(6 B-C) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{12 d \sqrt {a \cos (c+d x)+a}}+\frac {C \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{3 d \sqrt {a \cos (c+d x)+a}} \]
[In]
[Out]
Rule 211
Rule 222
Rule 2853
Rule 2861
Rule 3061
Rule 3062
Rule 3124
Rubi steps \begin{align*} \text {integral}& = \frac {C \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d \sqrt {a+a \cos (c+d x)}}+\frac {\int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (\frac {1}{2} a (6 A+5 C)+\frac {1}{2} a (6 B-C) \cos (c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx}{3 a} \\ & = \frac {(6 B-C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{12 d \sqrt {a+a \cos (c+d x)}}+\frac {C \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d \sqrt {a+a \cos (c+d x)}}+\frac {\int \frac {\sqrt {\cos (c+d x)} \left (\frac {3}{4} a^2 (6 B-C)+\frac {3}{4} a^2 (8 A-2 B+7 C) \cos (c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx}{6 a^2} \\ & = \frac {(8 A-2 B+7 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{8 d \sqrt {a+a \cos (c+d x)}}+\frac {(6 B-C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{12 d \sqrt {a+a \cos (c+d x)}}+\frac {C \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d \sqrt {a+a \cos (c+d x)}}+\frac {\int \frac {\frac {3}{8} a^3 (8 A-2 B+7 C)-\frac {3}{8} a^3 (8 A-14 B+9 C) \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{6 a^3} \\ & = \frac {(8 A-2 B+7 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{8 d \sqrt {a+a \cos (c+d x)}}+\frac {(6 B-C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{12 d \sqrt {a+a \cos (c+d x)}}+\frac {C \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d \sqrt {a+a \cos (c+d x)}}+(A-B+C) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx-\frac {(8 A-14 B+9 C) \int \frac {\sqrt {a+a \cos (c+d x)}}{\sqrt {\cos (c+d x)}} \, dx}{16 a} \\ & = \frac {(8 A-2 B+7 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{8 d \sqrt {a+a \cos (c+d x)}}+\frac {(6 B-C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{12 d \sqrt {a+a \cos (c+d x)}}+\frac {C \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d \sqrt {a+a \cos (c+d x)}}-\frac {(2 a (A-B+C)) \text {Subst}\left (\int \frac {1}{2 a^2+a x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{d}+\frac {(8 A-14 B+9 C) \text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a}}} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{8 a d} \\ & = -\frac {(8 A-14 B+9 C) \arcsin \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{8 \sqrt {a} d}+\frac {\sqrt {2} (A-B+C) \arctan \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{\sqrt {a} d}+\frac {(8 A-2 B+7 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{8 d \sqrt {a+a \cos (c+d x)}}+\frac {(6 B-C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{12 d \sqrt {a+a \cos (c+d x)}}+\frac {C \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d \sqrt {a+a \cos (c+d x)}} \\ \end{align*}
Time = 1.04 (sec) , antiderivative size = 346, normalized size of antiderivative = 1.44 \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx=\frac {\left (3 (8 A-2 B+7 C) \arcsin \left (\sqrt {1-\cos (c+d x)}\right )+48 (A-B+C) \arcsin \left (\sqrt {\cos (c+d x)}\right )-24 \sqrt {2} A \arctan \left (\frac {\sqrt {\cos (c+d x)}}{\sqrt {\sin ^2\left (\frac {1}{2} (c+d x)\right )}}\right )+24 \sqrt {2} B \arctan \left (\frac {\sqrt {\cos (c+d x)}}{\sqrt {\sin ^2\left (\frac {1}{2} (c+d x)\right )}}\right )-24 \sqrt {2} C \arctan \left (\frac {\sqrt {\cos (c+d x)}}{\sqrt {\sin ^2\left (\frac {1}{2} (c+d x)\right )}}\right )+12 B \sqrt {1-\cos (c+d x)} \cos ^{\frac {3}{2}}(c+d x)-2 C \sqrt {1-\cos (c+d x)} \cos ^{\frac {3}{2}}(c+d x)+8 C \sqrt {1-\cos (c+d x)} \cos ^{\frac {5}{2}}(c+d x)+24 A \sqrt {-((-1+\cos (c+d x)) \cos (c+d x))}-6 B \sqrt {-((-1+\cos (c+d x)) \cos (c+d x))}+21 C \sqrt {-((-1+\cos (c+d x)) \cos (c+d x))}\right ) \sin (c+d x)}{24 d \sqrt {1-\cos (c+d x)} \sqrt {a (1+\cos (c+d x))}} \]
[In]
[Out]
Time = 27.22 (sec) , antiderivative size = 403, normalized size of antiderivative = 1.67
method | result | size |
default | \(\frac {\left (8 C \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+12 B \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-2 C \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+24 A \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-24 A \sqrt {2}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )-6 B \sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+24 B \sqrt {2}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )+21 C \sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-24 C \sqrt {2}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )-24 A \arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )+42 B \arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )-27 C \arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )\right ) \left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}}{24 d \left (1+\cos \left (d x +c \right )\right ) a \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\) | \(403\) |
parts | \(\frac {A \left (\sin \left (d x +c \right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-\sqrt {2}\, \arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )-2 \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )\right ) \left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \sqrt {2}}{2 d \left (1+\cos \left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, a}+\frac {B \left (2 \sqrt {2}\, \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-\sin \left (d x +c \right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+7 \sqrt {2}\, \arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )+8 \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {2}}{8 d \left (1+\cos \left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, a}+\frac {C \left (8 \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )-2 \sqrt {2}\, \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+21 \sin \left (d x +c \right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-27 \sqrt {2}\, \arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )-48 \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )\right ) \left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \sqrt {2}}{48 d \left (1+\cos \left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, a}\) | \(537\) |
[In]
[Out]
none
Time = 15.85 (sec) , antiderivative size = 213, normalized size of antiderivative = 0.88 \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx=\frac {{\left (8 \, C \cos \left (d x + c\right )^{2} + 2 \, {\left (6 \, B - C\right )} \cos \left (d x + c\right ) + 24 \, A - 6 \, B + 21 \, C\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + 3 \, {\left ({\left (8 \, A - 14 \, B + 9 \, C\right )} \cos \left (d x + c\right ) + 8 \, A - 14 \, B + 9 \, C\right )} \sqrt {a} \arctan \left (\frac {\sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right ) - \frac {24 \, \sqrt {2} {\left ({\left (A - B + C\right )} a \cos \left (d x + c\right ) + {\left (A - B + C\right )} a\right )} \arctan \left (\frac {\sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right )}{\sqrt {a}}}{24 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^{3/2}\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right )}{\sqrt {a+a\,\cos \left (c+d\,x\right )}} \,d x \]
[In]
[Out]